{% extends "FOSUserBundle::layout.html.twig" %}
{% block title %}Confirm{% endblock %}
{% block titre %}Confirm{% endblock %}
{% block fos_user_content %}
    <div class="alert alert-success">
        <h4>Confirmation de l'inscription</h4>
        {{ 'registration.confirmed'|trans({'%username%': user.username}, 'FOSUserBundle') }}
    </div>
    
    {% if app.session is not empty %}
        {% set targetUrl = app.session.get('_security.' ~ app.security.token.providerKey ~ '.target_path') %}
        {% if targetUrl is not empty %}<p><a href="{{ targetUrl }}">{{ 'registration.back'|trans({}, 'FOSUserBundle') }}</a></p>{% endif %}
    {% endif %}
{% endblock fos_user_content %}
